(0) Obligation:

Clauses:

t(N) :- ','(ll(N, Xs), ','(select(X1, Xs, Xs1), ','(ll(M, Xs1), t(M)))).
t(0).
ll(s(N), .(X, Xs)) :- ll(N, Xs).
ll(0, []).
select(X, .(Y, Xs), .(Y, Ys)) :- select(X, Xs, Ys).
select(X, .(X, Xs), Xs).

Query: t(g)

(1) PrologToPrologProblemTransformerProof (SOUND transformation)

Built Prolog problem from termination graph ICLP10.

(2) Obligation:

Clauses:

llA(s(T16), .(X66, X67)) :- llA(T16, X67).
llA(0, []).
selectB(X168, .(T45, T47), .(T45, X169)) :- selectB(X168, T47, X169).
selectB(T54, .(T54, T55), T55).
llC(s(X221), .(T72, T74)) :- llC(X221, T74).
llC(0, []).
pD(X7, T21) :- llC(X7, T21).
pD(T61, T21) :- ','(llC(T61, T21), tE(T61)).
selectF(X131, X132, T34, .(X132, X133)) :- selectB(X131, T34, X133).
selectF(X193, X193, T58, T58).
tE(s(T8)) :- llA(T8, X32).
tE(s(T8)) :- ','(llA(T8, T10), selectF(X5, X31, T10, X6)).
tE(s(T8)) :- ','(llA(T8, T10), ','(selectF(T19, T20, T10, T21), pD(X7, T21))).
tE(0).

Query: tE(g)

(3) PrologToPiTRSProof (SOUND transformation)

We use the technique of [TOCL09]. With regard to the inferred argument filtering the predicates were used in the following modes:
tE_in: (b)
llA_in: (b,f)
selectF_in: (f,f,b,f)
selectB_in: (f,b,f)
pD_in: (f,b)
llC_in: (f,b)
Transforming Prolog into the following Term Rewriting System:
Pi-finite rewrite system:
The TRS R consists of the following rules:

tE_in_g(s(T8)) → U8_g(T8, llA_in_ga(T8, X32))
llA_in_ga(s(T16), .(X66, X67)) → U1_ga(T16, X66, X67, llA_in_ga(T16, X67))
llA_in_ga(0, []) → llA_out_ga(0, [])
U1_ga(T16, X66, X67, llA_out_ga(T16, X67)) → llA_out_ga(s(T16), .(X66, X67))
U8_g(T8, llA_out_ga(T8, X32)) → tE_out_g(s(T8))
tE_in_g(s(T8)) → U9_g(T8, llA_in_ga(T8, T10))
U9_g(T8, llA_out_ga(T8, T10)) → U10_g(T8, selectF_in_aaga(X5, X31, T10, X6))
selectF_in_aaga(X131, X132, T34, .(X132, X133)) → U7_aaga(X131, X132, T34, X133, selectB_in_aga(X131, T34, X133))
selectB_in_aga(X168, .(T45, T47), .(T45, X169)) → U2_aga(X168, T45, T47, X169, selectB_in_aga(X168, T47, X169))
selectB_in_aga(T54, .(T54, T55), T55) → selectB_out_aga(T54, .(T54, T55), T55)
U2_aga(X168, T45, T47, X169, selectB_out_aga(X168, T47, X169)) → selectB_out_aga(X168, .(T45, T47), .(T45, X169))
U7_aaga(X131, X132, T34, X133, selectB_out_aga(X131, T34, X133)) → selectF_out_aaga(X131, X132, T34, .(X132, X133))
selectF_in_aaga(X193, X193, T58, T58) → selectF_out_aaga(X193, X193, T58, T58)
U10_g(T8, selectF_out_aaga(X5, X31, T10, X6)) → tE_out_g(s(T8))
U9_g(T8, llA_out_ga(T8, T10)) → U11_g(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_g(T8, selectF_out_aaga(T19, T20, T10, T21)) → U12_g(T8, pD_in_ag(X7, T21))
pD_in_ag(X7, T21) → U4_ag(X7, T21, llC_in_ag(X7, T21))
llC_in_ag(s(X221), .(T72, T74)) → U3_ag(X221, T72, T74, llC_in_ag(X221, T74))
llC_in_ag(0, []) → llC_out_ag(0, [])
U3_ag(X221, T72, T74, llC_out_ag(X221, T74)) → llC_out_ag(s(X221), .(T72, T74))
U4_ag(X7, T21, llC_out_ag(X7, T21)) → pD_out_ag(X7, T21)
pD_in_ag(T61, T21) → U5_ag(T61, T21, llC_in_ag(T61, T21))
U5_ag(T61, T21, llC_out_ag(T61, T21)) → U6_ag(T61, T21, tE_in_g(T61))
tE_in_g(0) → tE_out_g(0)
U6_ag(T61, T21, tE_out_g(T61)) → pD_out_ag(T61, T21)
U12_g(T8, pD_out_ag(X7, T21)) → tE_out_g(s(T8))

The argument filtering Pi contains the following mapping:
tE_in_g(x1)  =  tE_in_g(x1)
s(x1)  =  s(x1)
U8_g(x1, x2)  =  U8_g(x2)
llA_in_ga(x1, x2)  =  llA_in_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
0  =  0
llA_out_ga(x1, x2)  =  llA_out_ga(x2)
.(x1, x2)  =  .(x2)
tE_out_g(x1)  =  tE_out_g
U9_g(x1, x2)  =  U9_g(x2)
U10_g(x1, x2)  =  U10_g(x2)
selectF_in_aaga(x1, x2, x3, x4)  =  selectF_in_aaga(x3)
U7_aaga(x1, x2, x3, x4, x5)  =  U7_aaga(x5)
selectB_in_aga(x1, x2, x3)  =  selectB_in_aga(x2)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x5)
selectB_out_aga(x1, x2, x3)  =  selectB_out_aga(x3)
selectF_out_aaga(x1, x2, x3, x4)  =  selectF_out_aaga(x4)
U11_g(x1, x2)  =  U11_g(x2)
U12_g(x1, x2)  =  U12_g(x2)
pD_in_ag(x1, x2)  =  pD_in_ag(x2)
U4_ag(x1, x2, x3)  =  U4_ag(x3)
llC_in_ag(x1, x2)  =  llC_in_ag(x2)
U3_ag(x1, x2, x3, x4)  =  U3_ag(x4)
[]  =  []
llC_out_ag(x1, x2)  =  llC_out_ag(x1)
pD_out_ag(x1, x2)  =  pD_out_ag(x1)
U5_ag(x1, x2, x3)  =  U5_ag(x3)
U6_ag(x1, x2, x3)  =  U6_ag(x1, x3)

Infinitary Constructor Rewriting Termination of PiTRS implies Termination of Prolog

(4) Obligation:

Pi-finite rewrite system:
The TRS R consists of the following rules:

tE_in_g(s(T8)) → U8_g(T8, llA_in_ga(T8, X32))
llA_in_ga(s(T16), .(X66, X67)) → U1_ga(T16, X66, X67, llA_in_ga(T16, X67))
llA_in_ga(0, []) → llA_out_ga(0, [])
U1_ga(T16, X66, X67, llA_out_ga(T16, X67)) → llA_out_ga(s(T16), .(X66, X67))
U8_g(T8, llA_out_ga(T8, X32)) → tE_out_g(s(T8))
tE_in_g(s(T8)) → U9_g(T8, llA_in_ga(T8, T10))
U9_g(T8, llA_out_ga(T8, T10)) → U10_g(T8, selectF_in_aaga(X5, X31, T10, X6))
selectF_in_aaga(X131, X132, T34, .(X132, X133)) → U7_aaga(X131, X132, T34, X133, selectB_in_aga(X131, T34, X133))
selectB_in_aga(X168, .(T45, T47), .(T45, X169)) → U2_aga(X168, T45, T47, X169, selectB_in_aga(X168, T47, X169))
selectB_in_aga(T54, .(T54, T55), T55) → selectB_out_aga(T54, .(T54, T55), T55)
U2_aga(X168, T45, T47, X169, selectB_out_aga(X168, T47, X169)) → selectB_out_aga(X168, .(T45, T47), .(T45, X169))
U7_aaga(X131, X132, T34, X133, selectB_out_aga(X131, T34, X133)) → selectF_out_aaga(X131, X132, T34, .(X132, X133))
selectF_in_aaga(X193, X193, T58, T58) → selectF_out_aaga(X193, X193, T58, T58)
U10_g(T8, selectF_out_aaga(X5, X31, T10, X6)) → tE_out_g(s(T8))
U9_g(T8, llA_out_ga(T8, T10)) → U11_g(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_g(T8, selectF_out_aaga(T19, T20, T10, T21)) → U12_g(T8, pD_in_ag(X7, T21))
pD_in_ag(X7, T21) → U4_ag(X7, T21, llC_in_ag(X7, T21))
llC_in_ag(s(X221), .(T72, T74)) → U3_ag(X221, T72, T74, llC_in_ag(X221, T74))
llC_in_ag(0, []) → llC_out_ag(0, [])
U3_ag(X221, T72, T74, llC_out_ag(X221, T74)) → llC_out_ag(s(X221), .(T72, T74))
U4_ag(X7, T21, llC_out_ag(X7, T21)) → pD_out_ag(X7, T21)
pD_in_ag(T61, T21) → U5_ag(T61, T21, llC_in_ag(T61, T21))
U5_ag(T61, T21, llC_out_ag(T61, T21)) → U6_ag(T61, T21, tE_in_g(T61))
tE_in_g(0) → tE_out_g(0)
U6_ag(T61, T21, tE_out_g(T61)) → pD_out_ag(T61, T21)
U12_g(T8, pD_out_ag(X7, T21)) → tE_out_g(s(T8))

The argument filtering Pi contains the following mapping:
tE_in_g(x1)  =  tE_in_g(x1)
s(x1)  =  s(x1)
U8_g(x1, x2)  =  U8_g(x2)
llA_in_ga(x1, x2)  =  llA_in_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
0  =  0
llA_out_ga(x1, x2)  =  llA_out_ga(x2)
.(x1, x2)  =  .(x2)
tE_out_g(x1)  =  tE_out_g
U9_g(x1, x2)  =  U9_g(x2)
U10_g(x1, x2)  =  U10_g(x2)
selectF_in_aaga(x1, x2, x3, x4)  =  selectF_in_aaga(x3)
U7_aaga(x1, x2, x3, x4, x5)  =  U7_aaga(x5)
selectB_in_aga(x1, x2, x3)  =  selectB_in_aga(x2)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x5)
selectB_out_aga(x1, x2, x3)  =  selectB_out_aga(x3)
selectF_out_aaga(x1, x2, x3, x4)  =  selectF_out_aaga(x4)
U11_g(x1, x2)  =  U11_g(x2)
U12_g(x1, x2)  =  U12_g(x2)
pD_in_ag(x1, x2)  =  pD_in_ag(x2)
U4_ag(x1, x2, x3)  =  U4_ag(x3)
llC_in_ag(x1, x2)  =  llC_in_ag(x2)
U3_ag(x1, x2, x3, x4)  =  U3_ag(x4)
[]  =  []
llC_out_ag(x1, x2)  =  llC_out_ag(x1)
pD_out_ag(x1, x2)  =  pD_out_ag(x1)
U5_ag(x1, x2, x3)  =  U5_ag(x3)
U6_ag(x1, x2, x3)  =  U6_ag(x1, x3)

(5) DependencyPairsProof (EQUIVALENT transformation)

Using Dependency Pairs [AG00,LOPSTR] we result in the following initial DP problem:
Pi DP problem:
The TRS P consists of the following rules:

TE_IN_G(s(T8)) → U8_G(T8, llA_in_ga(T8, X32))
TE_IN_G(s(T8)) → LLA_IN_GA(T8, X32)
LLA_IN_GA(s(T16), .(X66, X67)) → U1_GA(T16, X66, X67, llA_in_ga(T16, X67))
LLA_IN_GA(s(T16), .(X66, X67)) → LLA_IN_GA(T16, X67)
TE_IN_G(s(T8)) → U9_G(T8, llA_in_ga(T8, T10))
U9_G(T8, llA_out_ga(T8, T10)) → U10_G(T8, selectF_in_aaga(X5, X31, T10, X6))
U9_G(T8, llA_out_ga(T8, T10)) → SELECTF_IN_AAGA(X5, X31, T10, X6)
SELECTF_IN_AAGA(X131, X132, T34, .(X132, X133)) → U7_AAGA(X131, X132, T34, X133, selectB_in_aga(X131, T34, X133))
SELECTF_IN_AAGA(X131, X132, T34, .(X132, X133)) → SELECTB_IN_AGA(X131, T34, X133)
SELECTB_IN_AGA(X168, .(T45, T47), .(T45, X169)) → U2_AGA(X168, T45, T47, X169, selectB_in_aga(X168, T47, X169))
SELECTB_IN_AGA(X168, .(T45, T47), .(T45, X169)) → SELECTB_IN_AGA(X168, T47, X169)
U9_G(T8, llA_out_ga(T8, T10)) → U11_G(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_G(T8, selectF_out_aaga(T19, T20, T10, T21)) → U12_G(T8, pD_in_ag(X7, T21))
U11_G(T8, selectF_out_aaga(T19, T20, T10, T21)) → PD_IN_AG(X7, T21)
PD_IN_AG(X7, T21) → U4_AG(X7, T21, llC_in_ag(X7, T21))
PD_IN_AG(X7, T21) → LLC_IN_AG(X7, T21)
LLC_IN_AG(s(X221), .(T72, T74)) → U3_AG(X221, T72, T74, llC_in_ag(X221, T74))
LLC_IN_AG(s(X221), .(T72, T74)) → LLC_IN_AG(X221, T74)
PD_IN_AG(T61, T21) → U5_AG(T61, T21, llC_in_ag(T61, T21))
U5_AG(T61, T21, llC_out_ag(T61, T21)) → U6_AG(T61, T21, tE_in_g(T61))
U5_AG(T61, T21, llC_out_ag(T61, T21)) → TE_IN_G(T61)

The TRS R consists of the following rules:

tE_in_g(s(T8)) → U8_g(T8, llA_in_ga(T8, X32))
llA_in_ga(s(T16), .(X66, X67)) → U1_ga(T16, X66, X67, llA_in_ga(T16, X67))
llA_in_ga(0, []) → llA_out_ga(0, [])
U1_ga(T16, X66, X67, llA_out_ga(T16, X67)) → llA_out_ga(s(T16), .(X66, X67))
U8_g(T8, llA_out_ga(T8, X32)) → tE_out_g(s(T8))
tE_in_g(s(T8)) → U9_g(T8, llA_in_ga(T8, T10))
U9_g(T8, llA_out_ga(T8, T10)) → U10_g(T8, selectF_in_aaga(X5, X31, T10, X6))
selectF_in_aaga(X131, X132, T34, .(X132, X133)) → U7_aaga(X131, X132, T34, X133, selectB_in_aga(X131, T34, X133))
selectB_in_aga(X168, .(T45, T47), .(T45, X169)) → U2_aga(X168, T45, T47, X169, selectB_in_aga(X168, T47, X169))
selectB_in_aga(T54, .(T54, T55), T55) → selectB_out_aga(T54, .(T54, T55), T55)
U2_aga(X168, T45, T47, X169, selectB_out_aga(X168, T47, X169)) → selectB_out_aga(X168, .(T45, T47), .(T45, X169))
U7_aaga(X131, X132, T34, X133, selectB_out_aga(X131, T34, X133)) → selectF_out_aaga(X131, X132, T34, .(X132, X133))
selectF_in_aaga(X193, X193, T58, T58) → selectF_out_aaga(X193, X193, T58, T58)
U10_g(T8, selectF_out_aaga(X5, X31, T10, X6)) → tE_out_g(s(T8))
U9_g(T8, llA_out_ga(T8, T10)) → U11_g(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_g(T8, selectF_out_aaga(T19, T20, T10, T21)) → U12_g(T8, pD_in_ag(X7, T21))
pD_in_ag(X7, T21) → U4_ag(X7, T21, llC_in_ag(X7, T21))
llC_in_ag(s(X221), .(T72, T74)) → U3_ag(X221, T72, T74, llC_in_ag(X221, T74))
llC_in_ag(0, []) → llC_out_ag(0, [])
U3_ag(X221, T72, T74, llC_out_ag(X221, T74)) → llC_out_ag(s(X221), .(T72, T74))
U4_ag(X7, T21, llC_out_ag(X7, T21)) → pD_out_ag(X7, T21)
pD_in_ag(T61, T21) → U5_ag(T61, T21, llC_in_ag(T61, T21))
U5_ag(T61, T21, llC_out_ag(T61, T21)) → U6_ag(T61, T21, tE_in_g(T61))
tE_in_g(0) → tE_out_g(0)
U6_ag(T61, T21, tE_out_g(T61)) → pD_out_ag(T61, T21)
U12_g(T8, pD_out_ag(X7, T21)) → tE_out_g(s(T8))

The argument filtering Pi contains the following mapping:
tE_in_g(x1)  =  tE_in_g(x1)
s(x1)  =  s(x1)
U8_g(x1, x2)  =  U8_g(x2)
llA_in_ga(x1, x2)  =  llA_in_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
0  =  0
llA_out_ga(x1, x2)  =  llA_out_ga(x2)
.(x1, x2)  =  .(x2)
tE_out_g(x1)  =  tE_out_g
U9_g(x1, x2)  =  U9_g(x2)
U10_g(x1, x2)  =  U10_g(x2)
selectF_in_aaga(x1, x2, x3, x4)  =  selectF_in_aaga(x3)
U7_aaga(x1, x2, x3, x4, x5)  =  U7_aaga(x5)
selectB_in_aga(x1, x2, x3)  =  selectB_in_aga(x2)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x5)
selectB_out_aga(x1, x2, x3)  =  selectB_out_aga(x3)
selectF_out_aaga(x1, x2, x3, x4)  =  selectF_out_aaga(x4)
U11_g(x1, x2)  =  U11_g(x2)
U12_g(x1, x2)  =  U12_g(x2)
pD_in_ag(x1, x2)  =  pD_in_ag(x2)
U4_ag(x1, x2, x3)  =  U4_ag(x3)
llC_in_ag(x1, x2)  =  llC_in_ag(x2)
U3_ag(x1, x2, x3, x4)  =  U3_ag(x4)
[]  =  []
llC_out_ag(x1, x2)  =  llC_out_ag(x1)
pD_out_ag(x1, x2)  =  pD_out_ag(x1)
U5_ag(x1, x2, x3)  =  U5_ag(x3)
U6_ag(x1, x2, x3)  =  U6_ag(x1, x3)
TE_IN_G(x1)  =  TE_IN_G(x1)
U8_G(x1, x2)  =  U8_G(x2)
LLA_IN_GA(x1, x2)  =  LLA_IN_GA(x1)
U1_GA(x1, x2, x3, x4)  =  U1_GA(x4)
U9_G(x1, x2)  =  U9_G(x2)
U10_G(x1, x2)  =  U10_G(x2)
SELECTF_IN_AAGA(x1, x2, x3, x4)  =  SELECTF_IN_AAGA(x3)
U7_AAGA(x1, x2, x3, x4, x5)  =  U7_AAGA(x5)
SELECTB_IN_AGA(x1, x2, x3)  =  SELECTB_IN_AGA(x2)
U2_AGA(x1, x2, x3, x4, x5)  =  U2_AGA(x5)
U11_G(x1, x2)  =  U11_G(x2)
U12_G(x1, x2)  =  U12_G(x2)
PD_IN_AG(x1, x2)  =  PD_IN_AG(x2)
U4_AG(x1, x2, x3)  =  U4_AG(x3)
LLC_IN_AG(x1, x2)  =  LLC_IN_AG(x2)
U3_AG(x1, x2, x3, x4)  =  U3_AG(x4)
U5_AG(x1, x2, x3)  =  U5_AG(x3)
U6_AG(x1, x2, x3)  =  U6_AG(x1, x3)

We have to consider all (P,R,Pi)-chains

(6) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

TE_IN_G(s(T8)) → U8_G(T8, llA_in_ga(T8, X32))
TE_IN_G(s(T8)) → LLA_IN_GA(T8, X32)
LLA_IN_GA(s(T16), .(X66, X67)) → U1_GA(T16, X66, X67, llA_in_ga(T16, X67))
LLA_IN_GA(s(T16), .(X66, X67)) → LLA_IN_GA(T16, X67)
TE_IN_G(s(T8)) → U9_G(T8, llA_in_ga(T8, T10))
U9_G(T8, llA_out_ga(T8, T10)) → U10_G(T8, selectF_in_aaga(X5, X31, T10, X6))
U9_G(T8, llA_out_ga(T8, T10)) → SELECTF_IN_AAGA(X5, X31, T10, X6)
SELECTF_IN_AAGA(X131, X132, T34, .(X132, X133)) → U7_AAGA(X131, X132, T34, X133, selectB_in_aga(X131, T34, X133))
SELECTF_IN_AAGA(X131, X132, T34, .(X132, X133)) → SELECTB_IN_AGA(X131, T34, X133)
SELECTB_IN_AGA(X168, .(T45, T47), .(T45, X169)) → U2_AGA(X168, T45, T47, X169, selectB_in_aga(X168, T47, X169))
SELECTB_IN_AGA(X168, .(T45, T47), .(T45, X169)) → SELECTB_IN_AGA(X168, T47, X169)
U9_G(T8, llA_out_ga(T8, T10)) → U11_G(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_G(T8, selectF_out_aaga(T19, T20, T10, T21)) → U12_G(T8, pD_in_ag(X7, T21))
U11_G(T8, selectF_out_aaga(T19, T20, T10, T21)) → PD_IN_AG(X7, T21)
PD_IN_AG(X7, T21) → U4_AG(X7, T21, llC_in_ag(X7, T21))
PD_IN_AG(X7, T21) → LLC_IN_AG(X7, T21)
LLC_IN_AG(s(X221), .(T72, T74)) → U3_AG(X221, T72, T74, llC_in_ag(X221, T74))
LLC_IN_AG(s(X221), .(T72, T74)) → LLC_IN_AG(X221, T74)
PD_IN_AG(T61, T21) → U5_AG(T61, T21, llC_in_ag(T61, T21))
U5_AG(T61, T21, llC_out_ag(T61, T21)) → U6_AG(T61, T21, tE_in_g(T61))
U5_AG(T61, T21, llC_out_ag(T61, T21)) → TE_IN_G(T61)

The TRS R consists of the following rules:

tE_in_g(s(T8)) → U8_g(T8, llA_in_ga(T8, X32))
llA_in_ga(s(T16), .(X66, X67)) → U1_ga(T16, X66, X67, llA_in_ga(T16, X67))
llA_in_ga(0, []) → llA_out_ga(0, [])
U1_ga(T16, X66, X67, llA_out_ga(T16, X67)) → llA_out_ga(s(T16), .(X66, X67))
U8_g(T8, llA_out_ga(T8, X32)) → tE_out_g(s(T8))
tE_in_g(s(T8)) → U9_g(T8, llA_in_ga(T8, T10))
U9_g(T8, llA_out_ga(T8, T10)) → U10_g(T8, selectF_in_aaga(X5, X31, T10, X6))
selectF_in_aaga(X131, X132, T34, .(X132, X133)) → U7_aaga(X131, X132, T34, X133, selectB_in_aga(X131, T34, X133))
selectB_in_aga(X168, .(T45, T47), .(T45, X169)) → U2_aga(X168, T45, T47, X169, selectB_in_aga(X168, T47, X169))
selectB_in_aga(T54, .(T54, T55), T55) → selectB_out_aga(T54, .(T54, T55), T55)
U2_aga(X168, T45, T47, X169, selectB_out_aga(X168, T47, X169)) → selectB_out_aga(X168, .(T45, T47), .(T45, X169))
U7_aaga(X131, X132, T34, X133, selectB_out_aga(X131, T34, X133)) → selectF_out_aaga(X131, X132, T34, .(X132, X133))
selectF_in_aaga(X193, X193, T58, T58) → selectF_out_aaga(X193, X193, T58, T58)
U10_g(T8, selectF_out_aaga(X5, X31, T10, X6)) → tE_out_g(s(T8))
U9_g(T8, llA_out_ga(T8, T10)) → U11_g(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_g(T8, selectF_out_aaga(T19, T20, T10, T21)) → U12_g(T8, pD_in_ag(X7, T21))
pD_in_ag(X7, T21) → U4_ag(X7, T21, llC_in_ag(X7, T21))
llC_in_ag(s(X221), .(T72, T74)) → U3_ag(X221, T72, T74, llC_in_ag(X221, T74))
llC_in_ag(0, []) → llC_out_ag(0, [])
U3_ag(X221, T72, T74, llC_out_ag(X221, T74)) → llC_out_ag(s(X221), .(T72, T74))
U4_ag(X7, T21, llC_out_ag(X7, T21)) → pD_out_ag(X7, T21)
pD_in_ag(T61, T21) → U5_ag(T61, T21, llC_in_ag(T61, T21))
U5_ag(T61, T21, llC_out_ag(T61, T21)) → U6_ag(T61, T21, tE_in_g(T61))
tE_in_g(0) → tE_out_g(0)
U6_ag(T61, T21, tE_out_g(T61)) → pD_out_ag(T61, T21)
U12_g(T8, pD_out_ag(X7, T21)) → tE_out_g(s(T8))

The argument filtering Pi contains the following mapping:
tE_in_g(x1)  =  tE_in_g(x1)
s(x1)  =  s(x1)
U8_g(x1, x2)  =  U8_g(x2)
llA_in_ga(x1, x2)  =  llA_in_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
0  =  0
llA_out_ga(x1, x2)  =  llA_out_ga(x2)
.(x1, x2)  =  .(x2)
tE_out_g(x1)  =  tE_out_g
U9_g(x1, x2)  =  U9_g(x2)
U10_g(x1, x2)  =  U10_g(x2)
selectF_in_aaga(x1, x2, x3, x4)  =  selectF_in_aaga(x3)
U7_aaga(x1, x2, x3, x4, x5)  =  U7_aaga(x5)
selectB_in_aga(x1, x2, x3)  =  selectB_in_aga(x2)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x5)
selectB_out_aga(x1, x2, x3)  =  selectB_out_aga(x3)
selectF_out_aaga(x1, x2, x3, x4)  =  selectF_out_aaga(x4)
U11_g(x1, x2)  =  U11_g(x2)
U12_g(x1, x2)  =  U12_g(x2)
pD_in_ag(x1, x2)  =  pD_in_ag(x2)
U4_ag(x1, x2, x3)  =  U4_ag(x3)
llC_in_ag(x1, x2)  =  llC_in_ag(x2)
U3_ag(x1, x2, x3, x4)  =  U3_ag(x4)
[]  =  []
llC_out_ag(x1, x2)  =  llC_out_ag(x1)
pD_out_ag(x1, x2)  =  pD_out_ag(x1)
U5_ag(x1, x2, x3)  =  U5_ag(x3)
U6_ag(x1, x2, x3)  =  U6_ag(x1, x3)
TE_IN_G(x1)  =  TE_IN_G(x1)
U8_G(x1, x2)  =  U8_G(x2)
LLA_IN_GA(x1, x2)  =  LLA_IN_GA(x1)
U1_GA(x1, x2, x3, x4)  =  U1_GA(x4)
U9_G(x1, x2)  =  U9_G(x2)
U10_G(x1, x2)  =  U10_G(x2)
SELECTF_IN_AAGA(x1, x2, x3, x4)  =  SELECTF_IN_AAGA(x3)
U7_AAGA(x1, x2, x3, x4, x5)  =  U7_AAGA(x5)
SELECTB_IN_AGA(x1, x2, x3)  =  SELECTB_IN_AGA(x2)
U2_AGA(x1, x2, x3, x4, x5)  =  U2_AGA(x5)
U11_G(x1, x2)  =  U11_G(x2)
U12_G(x1, x2)  =  U12_G(x2)
PD_IN_AG(x1, x2)  =  PD_IN_AG(x2)
U4_AG(x1, x2, x3)  =  U4_AG(x3)
LLC_IN_AG(x1, x2)  =  LLC_IN_AG(x2)
U3_AG(x1, x2, x3, x4)  =  U3_AG(x4)
U5_AG(x1, x2, x3)  =  U5_AG(x3)
U6_AG(x1, x2, x3)  =  U6_AG(x1, x3)

We have to consider all (P,R,Pi)-chains

(7) DependencyGraphProof (EQUIVALENT transformation)

The approximation of the Dependency Graph [LOPSTR] contains 4 SCCs with 13 less nodes.

(8) Complex Obligation (AND)

(9) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LLC_IN_AG(s(X221), .(T72, T74)) → LLC_IN_AG(X221, T74)

The TRS R consists of the following rules:

tE_in_g(s(T8)) → U8_g(T8, llA_in_ga(T8, X32))
llA_in_ga(s(T16), .(X66, X67)) → U1_ga(T16, X66, X67, llA_in_ga(T16, X67))
llA_in_ga(0, []) → llA_out_ga(0, [])
U1_ga(T16, X66, X67, llA_out_ga(T16, X67)) → llA_out_ga(s(T16), .(X66, X67))
U8_g(T8, llA_out_ga(T8, X32)) → tE_out_g(s(T8))
tE_in_g(s(T8)) → U9_g(T8, llA_in_ga(T8, T10))
U9_g(T8, llA_out_ga(T8, T10)) → U10_g(T8, selectF_in_aaga(X5, X31, T10, X6))
selectF_in_aaga(X131, X132, T34, .(X132, X133)) → U7_aaga(X131, X132, T34, X133, selectB_in_aga(X131, T34, X133))
selectB_in_aga(X168, .(T45, T47), .(T45, X169)) → U2_aga(X168, T45, T47, X169, selectB_in_aga(X168, T47, X169))
selectB_in_aga(T54, .(T54, T55), T55) → selectB_out_aga(T54, .(T54, T55), T55)
U2_aga(X168, T45, T47, X169, selectB_out_aga(X168, T47, X169)) → selectB_out_aga(X168, .(T45, T47), .(T45, X169))
U7_aaga(X131, X132, T34, X133, selectB_out_aga(X131, T34, X133)) → selectF_out_aaga(X131, X132, T34, .(X132, X133))
selectF_in_aaga(X193, X193, T58, T58) → selectF_out_aaga(X193, X193, T58, T58)
U10_g(T8, selectF_out_aaga(X5, X31, T10, X6)) → tE_out_g(s(T8))
U9_g(T8, llA_out_ga(T8, T10)) → U11_g(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_g(T8, selectF_out_aaga(T19, T20, T10, T21)) → U12_g(T8, pD_in_ag(X7, T21))
pD_in_ag(X7, T21) → U4_ag(X7, T21, llC_in_ag(X7, T21))
llC_in_ag(s(X221), .(T72, T74)) → U3_ag(X221, T72, T74, llC_in_ag(X221, T74))
llC_in_ag(0, []) → llC_out_ag(0, [])
U3_ag(X221, T72, T74, llC_out_ag(X221, T74)) → llC_out_ag(s(X221), .(T72, T74))
U4_ag(X7, T21, llC_out_ag(X7, T21)) → pD_out_ag(X7, T21)
pD_in_ag(T61, T21) → U5_ag(T61, T21, llC_in_ag(T61, T21))
U5_ag(T61, T21, llC_out_ag(T61, T21)) → U6_ag(T61, T21, tE_in_g(T61))
tE_in_g(0) → tE_out_g(0)
U6_ag(T61, T21, tE_out_g(T61)) → pD_out_ag(T61, T21)
U12_g(T8, pD_out_ag(X7, T21)) → tE_out_g(s(T8))

The argument filtering Pi contains the following mapping:
tE_in_g(x1)  =  tE_in_g(x1)
s(x1)  =  s(x1)
U8_g(x1, x2)  =  U8_g(x2)
llA_in_ga(x1, x2)  =  llA_in_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
0  =  0
llA_out_ga(x1, x2)  =  llA_out_ga(x2)
.(x1, x2)  =  .(x2)
tE_out_g(x1)  =  tE_out_g
U9_g(x1, x2)  =  U9_g(x2)
U10_g(x1, x2)  =  U10_g(x2)
selectF_in_aaga(x1, x2, x3, x4)  =  selectF_in_aaga(x3)
U7_aaga(x1, x2, x3, x4, x5)  =  U7_aaga(x5)
selectB_in_aga(x1, x2, x3)  =  selectB_in_aga(x2)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x5)
selectB_out_aga(x1, x2, x3)  =  selectB_out_aga(x3)
selectF_out_aaga(x1, x2, x3, x4)  =  selectF_out_aaga(x4)
U11_g(x1, x2)  =  U11_g(x2)
U12_g(x1, x2)  =  U12_g(x2)
pD_in_ag(x1, x2)  =  pD_in_ag(x2)
U4_ag(x1, x2, x3)  =  U4_ag(x3)
llC_in_ag(x1, x2)  =  llC_in_ag(x2)
U3_ag(x1, x2, x3, x4)  =  U3_ag(x4)
[]  =  []
llC_out_ag(x1, x2)  =  llC_out_ag(x1)
pD_out_ag(x1, x2)  =  pD_out_ag(x1)
U5_ag(x1, x2, x3)  =  U5_ag(x3)
U6_ag(x1, x2, x3)  =  U6_ag(x1, x3)
LLC_IN_AG(x1, x2)  =  LLC_IN_AG(x2)

We have to consider all (P,R,Pi)-chains

(10) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(11) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LLC_IN_AG(s(X221), .(T72, T74)) → LLC_IN_AG(X221, T74)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
.(x1, x2)  =  .(x2)
LLC_IN_AG(x1, x2)  =  LLC_IN_AG(x2)

We have to consider all (P,R,Pi)-chains

(12) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(13) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LLC_IN_AG(.(T74)) → LLC_IN_AG(T74)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(14) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LLC_IN_AG(.(T74)) → LLC_IN_AG(T74)
    The graph contains the following edges 1 > 1

(15) YES

(16) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

SELECTB_IN_AGA(X168, .(T45, T47), .(T45, X169)) → SELECTB_IN_AGA(X168, T47, X169)

The TRS R consists of the following rules:

tE_in_g(s(T8)) → U8_g(T8, llA_in_ga(T8, X32))
llA_in_ga(s(T16), .(X66, X67)) → U1_ga(T16, X66, X67, llA_in_ga(T16, X67))
llA_in_ga(0, []) → llA_out_ga(0, [])
U1_ga(T16, X66, X67, llA_out_ga(T16, X67)) → llA_out_ga(s(T16), .(X66, X67))
U8_g(T8, llA_out_ga(T8, X32)) → tE_out_g(s(T8))
tE_in_g(s(T8)) → U9_g(T8, llA_in_ga(T8, T10))
U9_g(T8, llA_out_ga(T8, T10)) → U10_g(T8, selectF_in_aaga(X5, X31, T10, X6))
selectF_in_aaga(X131, X132, T34, .(X132, X133)) → U7_aaga(X131, X132, T34, X133, selectB_in_aga(X131, T34, X133))
selectB_in_aga(X168, .(T45, T47), .(T45, X169)) → U2_aga(X168, T45, T47, X169, selectB_in_aga(X168, T47, X169))
selectB_in_aga(T54, .(T54, T55), T55) → selectB_out_aga(T54, .(T54, T55), T55)
U2_aga(X168, T45, T47, X169, selectB_out_aga(X168, T47, X169)) → selectB_out_aga(X168, .(T45, T47), .(T45, X169))
U7_aaga(X131, X132, T34, X133, selectB_out_aga(X131, T34, X133)) → selectF_out_aaga(X131, X132, T34, .(X132, X133))
selectF_in_aaga(X193, X193, T58, T58) → selectF_out_aaga(X193, X193, T58, T58)
U10_g(T8, selectF_out_aaga(X5, X31, T10, X6)) → tE_out_g(s(T8))
U9_g(T8, llA_out_ga(T8, T10)) → U11_g(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_g(T8, selectF_out_aaga(T19, T20, T10, T21)) → U12_g(T8, pD_in_ag(X7, T21))
pD_in_ag(X7, T21) → U4_ag(X7, T21, llC_in_ag(X7, T21))
llC_in_ag(s(X221), .(T72, T74)) → U3_ag(X221, T72, T74, llC_in_ag(X221, T74))
llC_in_ag(0, []) → llC_out_ag(0, [])
U3_ag(X221, T72, T74, llC_out_ag(X221, T74)) → llC_out_ag(s(X221), .(T72, T74))
U4_ag(X7, T21, llC_out_ag(X7, T21)) → pD_out_ag(X7, T21)
pD_in_ag(T61, T21) → U5_ag(T61, T21, llC_in_ag(T61, T21))
U5_ag(T61, T21, llC_out_ag(T61, T21)) → U6_ag(T61, T21, tE_in_g(T61))
tE_in_g(0) → tE_out_g(0)
U6_ag(T61, T21, tE_out_g(T61)) → pD_out_ag(T61, T21)
U12_g(T8, pD_out_ag(X7, T21)) → tE_out_g(s(T8))

The argument filtering Pi contains the following mapping:
tE_in_g(x1)  =  tE_in_g(x1)
s(x1)  =  s(x1)
U8_g(x1, x2)  =  U8_g(x2)
llA_in_ga(x1, x2)  =  llA_in_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
0  =  0
llA_out_ga(x1, x2)  =  llA_out_ga(x2)
.(x1, x2)  =  .(x2)
tE_out_g(x1)  =  tE_out_g
U9_g(x1, x2)  =  U9_g(x2)
U10_g(x1, x2)  =  U10_g(x2)
selectF_in_aaga(x1, x2, x3, x4)  =  selectF_in_aaga(x3)
U7_aaga(x1, x2, x3, x4, x5)  =  U7_aaga(x5)
selectB_in_aga(x1, x2, x3)  =  selectB_in_aga(x2)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x5)
selectB_out_aga(x1, x2, x3)  =  selectB_out_aga(x3)
selectF_out_aaga(x1, x2, x3, x4)  =  selectF_out_aaga(x4)
U11_g(x1, x2)  =  U11_g(x2)
U12_g(x1, x2)  =  U12_g(x2)
pD_in_ag(x1, x2)  =  pD_in_ag(x2)
U4_ag(x1, x2, x3)  =  U4_ag(x3)
llC_in_ag(x1, x2)  =  llC_in_ag(x2)
U3_ag(x1, x2, x3, x4)  =  U3_ag(x4)
[]  =  []
llC_out_ag(x1, x2)  =  llC_out_ag(x1)
pD_out_ag(x1, x2)  =  pD_out_ag(x1)
U5_ag(x1, x2, x3)  =  U5_ag(x3)
U6_ag(x1, x2, x3)  =  U6_ag(x1, x3)
SELECTB_IN_AGA(x1, x2, x3)  =  SELECTB_IN_AGA(x2)

We have to consider all (P,R,Pi)-chains

(17) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(18) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

SELECTB_IN_AGA(X168, .(T45, T47), .(T45, X169)) → SELECTB_IN_AGA(X168, T47, X169)

R is empty.
The argument filtering Pi contains the following mapping:
.(x1, x2)  =  .(x2)
SELECTB_IN_AGA(x1, x2, x3)  =  SELECTB_IN_AGA(x2)

We have to consider all (P,R,Pi)-chains

(19) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(20) Obligation:

Q DP problem:
The TRS P consists of the following rules:

SELECTB_IN_AGA(.(T47)) → SELECTB_IN_AGA(T47)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(21) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • SELECTB_IN_AGA(.(T47)) → SELECTB_IN_AGA(T47)
    The graph contains the following edges 1 > 1

(22) YES

(23) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LLA_IN_GA(s(T16), .(X66, X67)) → LLA_IN_GA(T16, X67)

The TRS R consists of the following rules:

tE_in_g(s(T8)) → U8_g(T8, llA_in_ga(T8, X32))
llA_in_ga(s(T16), .(X66, X67)) → U1_ga(T16, X66, X67, llA_in_ga(T16, X67))
llA_in_ga(0, []) → llA_out_ga(0, [])
U1_ga(T16, X66, X67, llA_out_ga(T16, X67)) → llA_out_ga(s(T16), .(X66, X67))
U8_g(T8, llA_out_ga(T8, X32)) → tE_out_g(s(T8))
tE_in_g(s(T8)) → U9_g(T8, llA_in_ga(T8, T10))
U9_g(T8, llA_out_ga(T8, T10)) → U10_g(T8, selectF_in_aaga(X5, X31, T10, X6))
selectF_in_aaga(X131, X132, T34, .(X132, X133)) → U7_aaga(X131, X132, T34, X133, selectB_in_aga(X131, T34, X133))
selectB_in_aga(X168, .(T45, T47), .(T45, X169)) → U2_aga(X168, T45, T47, X169, selectB_in_aga(X168, T47, X169))
selectB_in_aga(T54, .(T54, T55), T55) → selectB_out_aga(T54, .(T54, T55), T55)
U2_aga(X168, T45, T47, X169, selectB_out_aga(X168, T47, X169)) → selectB_out_aga(X168, .(T45, T47), .(T45, X169))
U7_aaga(X131, X132, T34, X133, selectB_out_aga(X131, T34, X133)) → selectF_out_aaga(X131, X132, T34, .(X132, X133))
selectF_in_aaga(X193, X193, T58, T58) → selectF_out_aaga(X193, X193, T58, T58)
U10_g(T8, selectF_out_aaga(X5, X31, T10, X6)) → tE_out_g(s(T8))
U9_g(T8, llA_out_ga(T8, T10)) → U11_g(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_g(T8, selectF_out_aaga(T19, T20, T10, T21)) → U12_g(T8, pD_in_ag(X7, T21))
pD_in_ag(X7, T21) → U4_ag(X7, T21, llC_in_ag(X7, T21))
llC_in_ag(s(X221), .(T72, T74)) → U3_ag(X221, T72, T74, llC_in_ag(X221, T74))
llC_in_ag(0, []) → llC_out_ag(0, [])
U3_ag(X221, T72, T74, llC_out_ag(X221, T74)) → llC_out_ag(s(X221), .(T72, T74))
U4_ag(X7, T21, llC_out_ag(X7, T21)) → pD_out_ag(X7, T21)
pD_in_ag(T61, T21) → U5_ag(T61, T21, llC_in_ag(T61, T21))
U5_ag(T61, T21, llC_out_ag(T61, T21)) → U6_ag(T61, T21, tE_in_g(T61))
tE_in_g(0) → tE_out_g(0)
U6_ag(T61, T21, tE_out_g(T61)) → pD_out_ag(T61, T21)
U12_g(T8, pD_out_ag(X7, T21)) → tE_out_g(s(T8))

The argument filtering Pi contains the following mapping:
tE_in_g(x1)  =  tE_in_g(x1)
s(x1)  =  s(x1)
U8_g(x1, x2)  =  U8_g(x2)
llA_in_ga(x1, x2)  =  llA_in_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
0  =  0
llA_out_ga(x1, x2)  =  llA_out_ga(x2)
.(x1, x2)  =  .(x2)
tE_out_g(x1)  =  tE_out_g
U9_g(x1, x2)  =  U9_g(x2)
U10_g(x1, x2)  =  U10_g(x2)
selectF_in_aaga(x1, x2, x3, x4)  =  selectF_in_aaga(x3)
U7_aaga(x1, x2, x3, x4, x5)  =  U7_aaga(x5)
selectB_in_aga(x1, x2, x3)  =  selectB_in_aga(x2)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x5)
selectB_out_aga(x1, x2, x3)  =  selectB_out_aga(x3)
selectF_out_aaga(x1, x2, x3, x4)  =  selectF_out_aaga(x4)
U11_g(x1, x2)  =  U11_g(x2)
U12_g(x1, x2)  =  U12_g(x2)
pD_in_ag(x1, x2)  =  pD_in_ag(x2)
U4_ag(x1, x2, x3)  =  U4_ag(x3)
llC_in_ag(x1, x2)  =  llC_in_ag(x2)
U3_ag(x1, x2, x3, x4)  =  U3_ag(x4)
[]  =  []
llC_out_ag(x1, x2)  =  llC_out_ag(x1)
pD_out_ag(x1, x2)  =  pD_out_ag(x1)
U5_ag(x1, x2, x3)  =  U5_ag(x3)
U6_ag(x1, x2, x3)  =  U6_ag(x1, x3)
LLA_IN_GA(x1, x2)  =  LLA_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(24) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(25) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

LLA_IN_GA(s(T16), .(X66, X67)) → LLA_IN_GA(T16, X67)

R is empty.
The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
.(x1, x2)  =  .(x2)
LLA_IN_GA(x1, x2)  =  LLA_IN_GA(x1)

We have to consider all (P,R,Pi)-chains

(26) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(27) Obligation:

Q DP problem:
The TRS P consists of the following rules:

LLA_IN_GA(s(T16)) → LLA_IN_GA(T16)

R is empty.
Q is empty.
We have to consider all (P,Q,R)-chains.

(28) QDPSizeChangeProof (EQUIVALENT transformation)

By using the subterm criterion [SUBTERM_CRITERION] together with the size-change analysis [AAECC05] we have proven that there are no infinite chains for this DP problem.

From the DPs we obtained the following set of size-change graphs:

  • LLA_IN_GA(s(T16)) → LLA_IN_GA(T16)
    The graph contains the following edges 1 > 1

(29) YES

(30) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

TE_IN_G(s(T8)) → U9_G(T8, llA_in_ga(T8, T10))
U9_G(T8, llA_out_ga(T8, T10)) → U11_G(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_G(T8, selectF_out_aaga(T19, T20, T10, T21)) → PD_IN_AG(X7, T21)
PD_IN_AG(T61, T21) → U5_AG(T61, T21, llC_in_ag(T61, T21))
U5_AG(T61, T21, llC_out_ag(T61, T21)) → TE_IN_G(T61)

The TRS R consists of the following rules:

tE_in_g(s(T8)) → U8_g(T8, llA_in_ga(T8, X32))
llA_in_ga(s(T16), .(X66, X67)) → U1_ga(T16, X66, X67, llA_in_ga(T16, X67))
llA_in_ga(0, []) → llA_out_ga(0, [])
U1_ga(T16, X66, X67, llA_out_ga(T16, X67)) → llA_out_ga(s(T16), .(X66, X67))
U8_g(T8, llA_out_ga(T8, X32)) → tE_out_g(s(T8))
tE_in_g(s(T8)) → U9_g(T8, llA_in_ga(T8, T10))
U9_g(T8, llA_out_ga(T8, T10)) → U10_g(T8, selectF_in_aaga(X5, X31, T10, X6))
selectF_in_aaga(X131, X132, T34, .(X132, X133)) → U7_aaga(X131, X132, T34, X133, selectB_in_aga(X131, T34, X133))
selectB_in_aga(X168, .(T45, T47), .(T45, X169)) → U2_aga(X168, T45, T47, X169, selectB_in_aga(X168, T47, X169))
selectB_in_aga(T54, .(T54, T55), T55) → selectB_out_aga(T54, .(T54, T55), T55)
U2_aga(X168, T45, T47, X169, selectB_out_aga(X168, T47, X169)) → selectB_out_aga(X168, .(T45, T47), .(T45, X169))
U7_aaga(X131, X132, T34, X133, selectB_out_aga(X131, T34, X133)) → selectF_out_aaga(X131, X132, T34, .(X132, X133))
selectF_in_aaga(X193, X193, T58, T58) → selectF_out_aaga(X193, X193, T58, T58)
U10_g(T8, selectF_out_aaga(X5, X31, T10, X6)) → tE_out_g(s(T8))
U9_g(T8, llA_out_ga(T8, T10)) → U11_g(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_g(T8, selectF_out_aaga(T19, T20, T10, T21)) → U12_g(T8, pD_in_ag(X7, T21))
pD_in_ag(X7, T21) → U4_ag(X7, T21, llC_in_ag(X7, T21))
llC_in_ag(s(X221), .(T72, T74)) → U3_ag(X221, T72, T74, llC_in_ag(X221, T74))
llC_in_ag(0, []) → llC_out_ag(0, [])
U3_ag(X221, T72, T74, llC_out_ag(X221, T74)) → llC_out_ag(s(X221), .(T72, T74))
U4_ag(X7, T21, llC_out_ag(X7, T21)) → pD_out_ag(X7, T21)
pD_in_ag(T61, T21) → U5_ag(T61, T21, llC_in_ag(T61, T21))
U5_ag(T61, T21, llC_out_ag(T61, T21)) → U6_ag(T61, T21, tE_in_g(T61))
tE_in_g(0) → tE_out_g(0)
U6_ag(T61, T21, tE_out_g(T61)) → pD_out_ag(T61, T21)
U12_g(T8, pD_out_ag(X7, T21)) → tE_out_g(s(T8))

The argument filtering Pi contains the following mapping:
tE_in_g(x1)  =  tE_in_g(x1)
s(x1)  =  s(x1)
U8_g(x1, x2)  =  U8_g(x2)
llA_in_ga(x1, x2)  =  llA_in_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
0  =  0
llA_out_ga(x1, x2)  =  llA_out_ga(x2)
.(x1, x2)  =  .(x2)
tE_out_g(x1)  =  tE_out_g
U9_g(x1, x2)  =  U9_g(x2)
U10_g(x1, x2)  =  U10_g(x2)
selectF_in_aaga(x1, x2, x3, x4)  =  selectF_in_aaga(x3)
U7_aaga(x1, x2, x3, x4, x5)  =  U7_aaga(x5)
selectB_in_aga(x1, x2, x3)  =  selectB_in_aga(x2)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x5)
selectB_out_aga(x1, x2, x3)  =  selectB_out_aga(x3)
selectF_out_aaga(x1, x2, x3, x4)  =  selectF_out_aaga(x4)
U11_g(x1, x2)  =  U11_g(x2)
U12_g(x1, x2)  =  U12_g(x2)
pD_in_ag(x1, x2)  =  pD_in_ag(x2)
U4_ag(x1, x2, x3)  =  U4_ag(x3)
llC_in_ag(x1, x2)  =  llC_in_ag(x2)
U3_ag(x1, x2, x3, x4)  =  U3_ag(x4)
[]  =  []
llC_out_ag(x1, x2)  =  llC_out_ag(x1)
pD_out_ag(x1, x2)  =  pD_out_ag(x1)
U5_ag(x1, x2, x3)  =  U5_ag(x3)
U6_ag(x1, x2, x3)  =  U6_ag(x1, x3)
TE_IN_G(x1)  =  TE_IN_G(x1)
U9_G(x1, x2)  =  U9_G(x2)
U11_G(x1, x2)  =  U11_G(x2)
PD_IN_AG(x1, x2)  =  PD_IN_AG(x2)
U5_AG(x1, x2, x3)  =  U5_AG(x3)

We have to consider all (P,R,Pi)-chains

(31) UsableRulesProof (EQUIVALENT transformation)

For (infinitary) constructor rewriting [LOPSTR] we can delete all non-usable rules from R.

(32) Obligation:

Pi DP problem:
The TRS P consists of the following rules:

TE_IN_G(s(T8)) → U9_G(T8, llA_in_ga(T8, T10))
U9_G(T8, llA_out_ga(T8, T10)) → U11_G(T8, selectF_in_aaga(T19, T20, T10, T21))
U11_G(T8, selectF_out_aaga(T19, T20, T10, T21)) → PD_IN_AG(X7, T21)
PD_IN_AG(T61, T21) → U5_AG(T61, T21, llC_in_ag(T61, T21))
U5_AG(T61, T21, llC_out_ag(T61, T21)) → TE_IN_G(T61)

The TRS R consists of the following rules:

llA_in_ga(s(T16), .(X66, X67)) → U1_ga(T16, X66, X67, llA_in_ga(T16, X67))
llA_in_ga(0, []) → llA_out_ga(0, [])
selectF_in_aaga(X131, X132, T34, .(X132, X133)) → U7_aaga(X131, X132, T34, X133, selectB_in_aga(X131, T34, X133))
selectF_in_aaga(X193, X193, T58, T58) → selectF_out_aaga(X193, X193, T58, T58)
llC_in_ag(s(X221), .(T72, T74)) → U3_ag(X221, T72, T74, llC_in_ag(X221, T74))
llC_in_ag(0, []) → llC_out_ag(0, [])
U1_ga(T16, X66, X67, llA_out_ga(T16, X67)) → llA_out_ga(s(T16), .(X66, X67))
U7_aaga(X131, X132, T34, X133, selectB_out_aga(X131, T34, X133)) → selectF_out_aaga(X131, X132, T34, .(X132, X133))
U3_ag(X221, T72, T74, llC_out_ag(X221, T74)) → llC_out_ag(s(X221), .(T72, T74))
selectB_in_aga(X168, .(T45, T47), .(T45, X169)) → U2_aga(X168, T45, T47, X169, selectB_in_aga(X168, T47, X169))
selectB_in_aga(T54, .(T54, T55), T55) → selectB_out_aga(T54, .(T54, T55), T55)
U2_aga(X168, T45, T47, X169, selectB_out_aga(X168, T47, X169)) → selectB_out_aga(X168, .(T45, T47), .(T45, X169))

The argument filtering Pi contains the following mapping:
s(x1)  =  s(x1)
llA_in_ga(x1, x2)  =  llA_in_ga(x1)
U1_ga(x1, x2, x3, x4)  =  U1_ga(x4)
0  =  0
llA_out_ga(x1, x2)  =  llA_out_ga(x2)
.(x1, x2)  =  .(x2)
selectF_in_aaga(x1, x2, x3, x4)  =  selectF_in_aaga(x3)
U7_aaga(x1, x2, x3, x4, x5)  =  U7_aaga(x5)
selectB_in_aga(x1, x2, x3)  =  selectB_in_aga(x2)
U2_aga(x1, x2, x3, x4, x5)  =  U2_aga(x5)
selectB_out_aga(x1, x2, x3)  =  selectB_out_aga(x3)
selectF_out_aaga(x1, x2, x3, x4)  =  selectF_out_aaga(x4)
llC_in_ag(x1, x2)  =  llC_in_ag(x2)
U3_ag(x1, x2, x3, x4)  =  U3_ag(x4)
[]  =  []
llC_out_ag(x1, x2)  =  llC_out_ag(x1)
TE_IN_G(x1)  =  TE_IN_G(x1)
U9_G(x1, x2)  =  U9_G(x2)
U11_G(x1, x2)  =  U11_G(x2)
PD_IN_AG(x1, x2)  =  PD_IN_AG(x2)
U5_AG(x1, x2, x3)  =  U5_AG(x3)

We have to consider all (P,R,Pi)-chains

(33) PiDPToQDPProof (SOUND transformation)

Transforming (infinitary) constructor rewriting Pi-DP problem [LOPSTR] into ordinary QDP problem [LPAR04] by application of Pi.

(34) Obligation:

Q DP problem:
The TRS P consists of the following rules:

TE_IN_G(s(T8)) → U9_G(llA_in_ga(T8))
U9_G(llA_out_ga(T10)) → U11_G(selectF_in_aaga(T10))
U11_G(selectF_out_aaga(T21)) → PD_IN_AG(T21)
PD_IN_AG(T21) → U5_AG(llC_in_ag(T21))
U5_AG(llC_out_ag(T61)) → TE_IN_G(T61)

The TRS R consists of the following rules:

llA_in_ga(s(T16)) → U1_ga(llA_in_ga(T16))
llA_in_ga(0) → llA_out_ga([])
selectF_in_aaga(T34) → U7_aaga(selectB_in_aga(T34))
selectF_in_aaga(T58) → selectF_out_aaga(T58)
llC_in_ag(.(T74)) → U3_ag(llC_in_ag(T74))
llC_in_ag([]) → llC_out_ag(0)
U1_ga(llA_out_ga(X67)) → llA_out_ga(.(X67))
U7_aaga(selectB_out_aga(X133)) → selectF_out_aaga(.(X133))
U3_ag(llC_out_ag(X221)) → llC_out_ag(s(X221))
selectB_in_aga(.(T47)) → U2_aga(selectB_in_aga(T47))
selectB_in_aga(.(T55)) → selectB_out_aga(T55)
U2_aga(selectB_out_aga(X169)) → selectB_out_aga(.(X169))

The set Q consists of the following terms:

llA_in_ga(x0)
selectF_in_aaga(x0)
llC_in_ag(x0)
U1_ga(x0)
U7_aaga(x0)
U3_ag(x0)
selectB_in_aga(x0)
U2_aga(x0)

We have to consider all (P,Q,R)-chains.

(35) MRRProof (EQUIVALENT transformation)

By using the rule removal processor [LPAR04] with the following ordering, at least one Dependency Pair or term rewrite system rule of this QDP problem can be strictly oriented.
Strictly oriented dependency pairs:

TE_IN_G(s(T8)) → U9_G(llA_in_ga(T8))
U9_G(llA_out_ga(T10)) → U11_G(selectF_in_aaga(T10))
U11_G(selectF_out_aaga(T21)) → PD_IN_AG(T21)
PD_IN_AG(T21) → U5_AG(llC_in_ag(T21))
U5_AG(llC_out_ag(T61)) → TE_IN_G(T61)

Strictly oriented rules of the TRS R:

llA_in_ga(s(T16)) → U1_ga(llA_in_ga(T16))
llA_in_ga(0) → llA_out_ga([])
selectF_in_aaga(T34) → U7_aaga(selectB_in_aga(T34))
selectF_in_aaga(T58) → selectF_out_aaga(T58)
llC_in_ag(.(T74)) → U3_ag(llC_in_ag(T74))
llC_in_ag([]) → llC_out_ag(0)
U1_ga(llA_out_ga(X67)) → llA_out_ga(.(X67))
U7_aaga(selectB_out_aga(X133)) → selectF_out_aaga(.(X133))
U3_ag(llC_out_ag(X221)) → llC_out_ag(s(X221))
selectB_in_aga(.(T47)) → U2_aga(selectB_in_aga(T47))
selectB_in_aga(.(T55)) → selectB_out_aga(T55)
U2_aga(selectB_out_aga(X169)) → selectB_out_aga(.(X169))

Used ordering: Knuth-Bendix order [KBO] with precedence:
PDINAG1 > selectFinaaga1 > U9G1 > llCinag1 > U7aaga1 > s1 > selectFoutaaga1 > U5AG1 > selectBinaga1 > U11G1 > 0 > TEING1 > U2aga1 > selectBoutaga1 > [] > llAinga1 > U3ag1 > llCoutag1 > .1 > U1ga1 > llAoutga1

and weight map:

0=2
[]=1
llA_in_ga_1=7
s_1=6
U1_ga_1=6
llA_out_ga_1=8
selectF_in_aaga_1=9
U7_aaga_1=6
selectB_in_aga_1=2
selectF_out_aaga_1=7
llC_in_ag_1=9
._1=6
U3_ag_1=6
llC_out_ag_1=7
selectB_out_aga_1=7
U2_aga_1=6
TE_IN_G_1=7
U9_G_1=5
U11_G_1=4
PD_IN_AG_1=10
U5_AG_1=1

The variable weight is 1

(36) Obligation:

Q DP problem:
P is empty.
R is empty.
The set Q consists of the following terms:

llA_in_ga(x0)
selectF_in_aaga(x0)
llC_in_ag(x0)
U1_ga(x0)
U7_aaga(x0)
U3_ag(x0)
selectB_in_aga(x0)
U2_aga(x0)

We have to consider all (P,Q,R)-chains.

(37) PisEmptyProof (EQUIVALENT transformation)

The TRS P is empty. Hence, there is no (P,Q,R) chain.

(38) YES